<?php
/**
 * 	Bushido
 *
 * @category   Bushido
 * @package    Bushido_FusionCharts
 * @subpackage Theme
 * @copyright  Copyright (c) 2008-2009 Nathan Keyes
 * @author Nathan Keyes
 * @version    $Id: SingleSeries.php 7 2009-11-14 22:42:08Z nkeyes $
 */


/**
 * 
 * @author Nathan Keyes
 *
 */
class Bushido_FusionCharts_Theme_SingleSeries extends Bushido_FusionCharts_Theme_Abstract
{

	
	/**
	 * 
	 * @return void
	 */
	public function __construct()
	{
		$this->name = 'SingleSeries';
		$this->isMultiSeries = false;
		$this->chartType = Bushido_FusionCharts::FREE_LINE;
	}
	
	
	/**
	 * (non-PHPdoc)
	 * @see library/Bushido/FusionCharts/Theme/Bushido_FusionCharts_Theme_Abstract#getDataSetNode()
	 */
	public function getDataSetNode($name)
	{
		return null;	
	}
	
	
	/**
	 * (non-PHPdoc)
	 * @see library/Bushido/FusionCharts/Theme/Bushido_FusionCharts_Theme_Abstract#getDataNode()
	 */
	public function getDataNode($label, $value)
	{
		$setNode =  "<set name='" . htmlentities($label) . "' value='$value'/>";
		return $setNode;
	}
	
	
	/**
	 * (non-PHPdoc)
	 * @see library/Bushido/FusionCharts/Theme/Bushido_FusionCharts_Theme_Abstract#getCategoryNode()
	 */
	public function getCategoryNode($label)
	{
		$categoryNode =  "<category label='" . $this->getCategoryLabel($label) . "' />";
		return $categoryNode;
	}
	
	
	/**
	 * (non-PHPdoc)
	 * @see library/Bushido/FusionCharts/Theme/Bushido_FusionCharts_Theme_Abstract#getCategoryLabel()
	 */
	public function getCategoryLabel($label)
	{
		return htmlentities($label);
	}
}
